package org.shop.service.impl;

import java.util.List;
import org.shop.dao.AddressMapper;
import org.shop.entity.Address;
import org.shop.service.AddressService;
import org.shop.service.base.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AddressServiceImpl extends BaseServiceImpl<Address, Long> implements AddressService {

	@Autowired
    private AddressMapper addressMapper;
    
	@Override
	public List<Address> getAddressList(Long userId) {
		
		return addressMapper.getAddressList(userId);
	}
	@Override
	public Long updateDefaultAddress(Long userId) {
		return addressMapper.updateDefaultAddress(userId);
	}
	@Override
	public Address getPersonDefaultAddress(Long userId) {
		return addressMapper.getPersonDefaultAddress(userId);
	}

}
